package com.woniuxy.main.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.woniuxy.main.mapper.FacilityMapper;
import com.woniuxy.main.pojo.Facility;
import com.woniuxy.main.service.FacilityService;

@Service
@Transactional
public class FacilityServiceImp implements FacilityService {
	
	@Autowired
	private FacilityMapper facilityMapper;

	@Override
	public List<Facility> getFacilityByRoomId(int room_id) {
		
		return facilityMapper.getFacilityByRoomId(room_id);
	}

	@Override
	public boolean addFacility(Facility facility) {
		
		return facilityMapper.addFacility(facility);
	}

}
